home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / musik / SMACHN36 / ENGLISH / SMFORMAT.TXT < prev    next >
Encoding:
Text File  |  1998-06-25  |  4.5 KB  |  111 lines

  1.  
  2. Object : structure of Sound Machine's built-in format (versions 2.5, 3.0 & 3.1)
  3.  
  4.  
  5. 1. Sound Machine 2.5 format
  6. ===========================
  7.  
  8.      A. General structure
  9.      --------------------
  10.  
  11. header
  12.   SM25   ' SM=Sound Machine, 25=version 2.5
  13.   x%     ' number of the format (see FORMATS.TXT)
  14.   f%     ' the byte for the set up, see below
  15.   o1     ' 1st init offset
  16.   o2     ' 2nd init offset, used for digidrums
  17.   o3     ' VBL offset, installs the music
  18.   o4     ' 1st stop offset, to stop the music
  19.   o5     ' 2nd stop offset, to stop the digidrums
  20.   s1     ' if s1="*" then "r1" is > 0, if s1="." then "r1" is < 0.
  21.   r1     ' value of the d0 register to start the music (number of music)
  22.   s2     ' see "s1"
  23.   r2     ' value of the d0 register to stop the music (number of music)
  24. end of header
  25. beginning of the music
  26.   (...)
  27. end of the music
  28.  
  29.  
  30.      B. Structure of the byte for the set up
  31.      ---------------------------------------
  32.  
  33. Bit of configuration --------------------------------->  7  6  5  4  3  2  1  0
  34. Meaning of each bit :                                    |  |  |  |  |  |  |  |
  35.                                                          |  |  |  |  |  |  |  |
  36. - unused ------------------------------------------------/  |  |  |  |  |  |  |
  37. - if 1 then the music works on Falcon ----------------------/  |  |  |  |  |  |
  38. - music type : ------------------------------------------------+--/  |  |  |  |
  39.   00 : soundchip                                                     |  |  |  |
  40.   01 : sid-voice                                                     |  |  |  |
  41.   10 : halftrack                                                     |  |  |  |
  42.   11 : sid-voice + halftrack (mixed)                                 |  |  |  |
  43. - if 1 then there are several musics in the same file ---------------/  |  |  |
  44. - if 1 then the 'o5' offset will be used (to stop digidrums) -----------/  |  |
  45. - if 1 then the 'o2' offset will be used (to initialize digidrums) --------/  |
  46. - if 1 then the music can be played ------------------------------------------/
  47.  
  48.  
  49. 2. Sound Machine 3.0 format
  50. ===========================
  51.  
  52.      A. General structure
  53.      --------------------
  54.  
  55. header
  56.   SM3    ' SM = Sound Machine, 3 = version 3.0
  57.   x%     ' number of the format (see FORMATS.TXT)
  58.   f%     ' the byte for the set up, see below
  59.   o1     ' 1st init offset
  60.   o2     ' 2nd init offset, used for digidrums
  61.   o3     ' VBL offset, installs the music
  62.   o4     ' 1st stop offset, to stop the music
  63.   o5     ' 2nd stop offset, to stop the digidrums
  64.   r1     ' value of the d0 register to start the music (number of music)
  65.   r2     ' value of the d0 register to stop the music (number of music)
  66. end of header
  67. beginning of the music
  68.   (...)
  69. end of the music
  70.  
  71.  
  72.      B. Structure of the byte for the set up
  73.      ---------------------------------------
  74.  
  75. Bit of configuration --------------------------------->  7  6  5  4  3  2  1  0
  76. Meaning of each bit :                                    |  |  |  |  |  |  |  |
  77.                                                          |  |  |  |  |  |  |  |
  78. - if 1 then "r1" is > 0 ---------------------------------/  |  |  |  |  |  |  |
  79. - if 1 then "r2" is > 0 ------------------------------------/  |  |  |  |  |  |
  80. - music type : ------------------------------------------------+--/  |  |  |  |
  81.   00 : soundchip                                                     |  |  |  |
  82.   01 : sid-voice                                                     |  |  |  |
  83.   10 : halftrack                                                     |  |  |  |
  84.   11 : sid-voice + halftrack (mixed)                                 |  |  |  |
  85. - if 1 then this music works on Falcon ------------------------------/  |  |  |
  86. - if 1 then the file contains several musics ---------------------------/  |  |
  87. - if 1 then the 'o5' offset will be used to stop digidrums ----------------/  |
  88. - if 1 then this music will be played ----------------------------------------/
  89.  
  90.  
  91. 3. Sound Machine 3.1 format
  92. ===========================
  93.  
  94.      A. General structure
  95.      --------------------
  96.  
  97. header
  98.   Sm3    ' version of Sound Machine (SM3=3.0, Sm3=3.1)
  99.   (the rest is identical to version 3.0)
  100. end of header
  101. beginning of the music
  102.   (...)
  103. end of the music
  104.  
  105.  
  106.      B. Structure of the byte for the set up
  107.      ---------------------------------------
  108.  
  109.      Absolutely equal to version 3.0 except for the bit 0. If this bit contains
  110. 1 then the 'o2' offset will be used to initialize digidrums.
  111.